import request from '@/utils/request'

//查询
export function deptTree(data) {
	return request({
		url: '/admin/user/dept/deptTree',
		method: 'get',
		params: data
	})
}

//新增
export function deptSave(data) {
	return request({
		url: '/admin/user/dept/deptSave',
		method: 'post',
		data
	})
}

//修改
export function deptUpdate(data) {
	return request({
		url: '/admin/user/dept/deptUpdate',
		method: 'post',
		data
	})
}

//删除
export function deptRemove(data) {
	return request({
		url: '/admin/user/dept/deptRemove',
		method: 'DELETE',
		params: data
	})
}